from model.proxy import Proxy


class ProxyService:
    def take(self, platformId: int) -> Proxy:
        pass

    def invalid(self, platformId: int, proxy: Proxy) -> Proxy:
        pass

    def build_meta(self, ip, port):
        return f"http://{ip}:{port}"

    def build_meta(self, ip):
        return f"http://{ip}"
